<template>
  <div class="category">
    <h3>今日{{title}}推荐</h3>
    <slot></slot>
  </div>
</template>

<script>
  export default {
    name:'Category',
    props:['title']
  }
</script>

<style scoped>
  .category {
    width: 300px;
    height: 400px;
    background-color: skyblue;
    padding: 10px;
    border-radius: 10px;
    box-shadow:  0 0 10px;
  }
  h3 {
    background-color: orange;
    font-size: 20px;
    text-align: center;
  }
  img {
    width: 100%;
  }
  video {
    width: 100%;
  }
</style>